package com.zy.ch1.dao;


import com.zy.ch1.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BookMapper {

    List<Book> selectAllBook();

    List<Book> selectBooks(Map<String,Object> map);

    int deleteBookByBookName(String bookName);

    int updateBook(Map<String,Object> map);

    int insertBook(Book book);
}
